package com.iotp.entity.authority;

import java.io.Serializable;
import java.util.List;

/**
 * 系统权限实体类
 * @author Assassin
 */
public class Authority implements Serializable {

   /**
	* default SerialVersionUID
	*/
	private static final long serialVersionUID = 1L;

	// Fields

	private Long authorityId;// 标识信息-权限Id[主键值]
	private String authorityCode;// 标识信息-权限编码
	private Integer authorityType;// 标识信息-权限类型
	private Long orgId;// 标识信息-机构Id
	private Long menuId;// 标识信息-菜单id
	private Integer authoryityStatus;// 状态信息-权限数据状态
	private Integer isDel;// 状态信息-是否删除[1-是 | 0-否]
	private Integer authorityOrder;// 状态信息-权限排序
	private Integer authorityLevel;// 层级信息-权限级别
	private Integer isParent;// 层级信息-是否父级
	private Long authorityPid;// 层级信息-父级权限Id
	private String authorityName;// 基本信息-权限名称
	private String authorityDesc;// 基本信息-权限说明
	private String authorityKey;// 授权信息-权限标识
	private String authorityUrl;// 授权信息-权限地址，多个地址使用逗号分隔
	private Long createTime;// 时间信息-创建时间
	private Long updateTime;// 时间信息-更新时间[初始化=NULL]
	
	// Extends Fields
	
	private List<Authority> subList;// 权限子集
	
	// Empty Constructor
	public Authority() {
		super();
	}
	
	// Full Constructor
	public Authority(Long authorityId, String authorityCode, Integer authorityType, Long orgId, Long menuId, Integer authoryityStatus, Integer isDel, Integer authorityOrder, Integer authorityLevel, Integer isParent, Long authorityPid, String authorityName, String authorityDesc, String authorityKey, String authorityUrl, Long createTime, Long updateTime) {
		this.authorityId =  authorityId;
		this.authorityCode =  authorityCode;
		this.authorityType =  authorityType;
		this.orgId =  orgId;
		this.menuId =  menuId;
		this.authoryityStatus =  authoryityStatus;
		this.isDel =  isDel;
		this.authorityOrder =  authorityOrder;
		this.authorityLevel = authorityLevel;
		this.isParent = isParent;
		this.authorityPid = authorityPid;
		this.authorityName =  authorityName;
		this.authorityDesc =  authorityDesc;
		this.authorityKey = authorityKey;
		this.authorityUrl = authorityUrl;
		this.createTime =  createTime;
		this.updateTime =  updateTime;
	}

	// Property accessors

	public Long getAuthorityId () {
		return this.authorityId;
	}
	
	public void setAuthorityId (Long authorityId) {
		this.authorityId =  authorityId;
	}
	
	public String getAuthorityCode () {
		return this.authorityCode;
	}
	
	public void setAuthorityCode (String authorityCode) {
		this.authorityCode =  authorityCode;
	}
	
	public Integer getAuthorityType () {
		return this.authorityType;
	}
	
	public void setAuthorityType (Integer authorityType) {
		this.authorityType =  authorityType;
	}
	
	public Long getOrgId () {
		return this.orgId;
	}
	
	public void setOrgId (Long orgId) {
		this.orgId =  orgId;
	}
	
	public Long getMenuId () {
		return this.menuId;
	}
	
	public void setMenuId (Long menuId) {
		this.menuId =  menuId;
	}
	
	public Integer getAuthoryityStatus () {
		return this.authoryityStatus;
	}
	
	public void setAuthoryityStatus (Integer authoryityStatus) {
		this.authoryityStatus =  authoryityStatus;
	}
	
	public Integer getIsDel () {
		return this.isDel;
	}
	
	public void setIsDel (Integer isDel) {
		this.isDel =  isDel;
	}
	
	public Integer getAuthorityOrder () {
		return this.authorityOrder;
	}
	
	public void setAuthorityOrder (Integer authorityOrder) {
		this.authorityOrder =  authorityOrder;
	}
	
	public Integer getAuthorityLevel() {
		return authorityLevel;
	}

	public void setAuthorityLevel(Integer authorityLevel) {
		this.authorityLevel = authorityLevel;
	}

	public Integer getIsParent() {
		return isParent;
	}

	public void setIsParent(Integer isParent) {
		this.isParent = isParent;
	}

	public Long getAuthorityPid() {
		return authorityPid;
	}

	public void setAuthorityPid(Long authorityPid) {
		this.authorityPid = authorityPid;
	}

	public String getAuthorityName () {
		return this.authorityName;
	}
	
	public void setAuthorityName (String authorityName) {
		this.authorityName =  authorityName;
	}
	
	public String getAuthorityDesc () {
		return this.authorityDesc;
	}
	
	public void setAuthorityDesc (String authorityDesc) {
		this.authorityDesc =  authorityDesc;
	}
	
	public String getAuthorityKey() {
		return authorityKey;
	}

	public void setAuthorityKey(String authorityKey) {
		this.authorityKey = authorityKey;
	}

	public String getAuthorityUrl() {
		return authorityUrl;
	}

	public void setAuthorityUrl(String authorityUrl) {
		this.authorityUrl = authorityUrl;
	}

	public Long getCreateTime () {
		return this.createTime;
	}
	
	public void setCreateTime (Long createTime) {
		this.createTime =  createTime;
	}
	
	public Long getUpdateTime () {
		return this.updateTime;
	}
	
	public void setUpdateTime (Long updateTime) {
		this.updateTime =  updateTime;
	}
	
	
	public List<Authority> getSubList() {
		return subList;
	}

	public void setSubList(List<Authority> subList) {
		this.subList = subList;
	}

	@Override
	public String toString () {
		StringBuffer entityStirngBuffer = new StringBuffer();
		entityStirngBuffer.append("authorityId = " +  this.getAuthorityId() + "\n");
		entityStirngBuffer.append("authorityCode = " +  this.getAuthorityCode() + "\n");
		entityStirngBuffer.append("authorityType = " +  this.getAuthorityType() + "\n");
		entityStirngBuffer.append("orgId = " +  this.getOrgId() + "\n");
		entityStirngBuffer.append("menuId = " +  this.getMenuId() + "\n");
		entityStirngBuffer.append("authoryityStatus = " +  this.getAuthoryityStatus() + "\n");
		entityStirngBuffer.append("isDel = " +  this.getIsDel() + "\n");
		entityStirngBuffer.append("authorityOrder = " +  this.getAuthorityOrder() + "\n");
		entityStirngBuffer.append("authorityLevel = " +  this.getAuthorityLevel() + "\n");
		entityStirngBuffer.append("isParent = " +  this.getIsParent() + "\n");
		entityStirngBuffer.append("authorityPid = " +  this.getAuthorityPid() + "\n");
		entityStirngBuffer.append("authorityName = " +  this.getAuthorityName() + "\n");
		entityStirngBuffer.append("authorityDesc = " +  this.getAuthorityDesc() + "\n");
		entityStirngBuffer.append("authorityKey = " +  this.getAuthorityKey() + "\n");
		entityStirngBuffer.append("authorityUrl = " +  this.getAuthorityUrl() + "\n");
		entityStirngBuffer.append("createTime = " +  this.getCreateTime() + "\n");
		entityStirngBuffer.append("updateTime = " +  this.getUpdateTime() + "\n");
		return entityStirngBuffer.toString();
	}
	
}